#ifndef MUTATIMER_H
#define MUTATIMER_H

#include <QThread>
#include <QElapsedTimer>
#include <QDebug>

class MutaTimer : public QThread
{
    Q_OBJECT
public:
    MutaTimer(int interval);
    void start(QThread::Priority priority);
private:
    int interval;
    QElapsedTimer elapsedTimer;
    bool playing;
protected:
    void run();

signals:
    void timeout(qreal delta);
public slots:
    void setPlaying(bool playing);
    void startPlaying();
    void stopPlaying();
};

#endif // MUTATIMER_H
